package client.model;

import java.io.*;

public class User {
	//basic person information
	private String id;
	private String password;
	private String name;
	private String sex;
	private String age;
	private String birthDay;
	private String birthMonth;
	private String birthYear;
	private String emailAddress;
	private String interest;
	private String telephone;
	
	//other information
	/*
	 * Contact contact;
	 * Daily daily;
	 * Photo photo;
	 * Post post;
	 * Status status;
	 * 
	 */
	//for boss, teachers, administrator, dean
	private String forumBelongTo;
	
	//get & set
	public String getId(){
		return id;
	}
	public void setId(String id){
		this.id = id;
	}
	public String getName(){
		return name;
	}
	public void setName(String name){
		this.name = name;
	}
	public String getAge(){
		return age;
	}
	public void setAge(String age){
		this.age = age;
	}
	public String getPassword(){
		return password;
	}
	public void setPassword(String password){
		this.password = password;
	}
	public String getSex(){
		return sex;
	}
	public void setSex(String sex){
		this.sex = sex;
	}
	public String getBirthDay(){
		return birthDay;
	}
	public void setBirthDay(String birthDay){
		this.birthDay = birthDay;
	}
	public String getBirthMonth(){
		return birthMonth;
	}
	public void setBirthMonth(String birthMonth){
		this.birthMonth = birthMonth;
	}
	public String getBirthYear(){
		return birthYear;
	}
	public void setBirthYear(String birthYear){
		this.birthYear = birthYear;
	}
	public String getEmailAddress(){
		return emailAddress;
	}
	public void setEmailAddress(String emailAddress){
		this.emailAddress = emailAddress;
	}
	public String getInterest(){
		return interest;
	}
	public void setInterest(String interest){
		this.interest = interest;
	}
	public String getTelephone(){
		return telephone;
	}
	public void setTelephone(String telephone){
		this.telephone = telephone;
	}
	public String getforumBelongTo(){
		return forumBelongTo;
	}
	public void setforumBelongTo(String forumBelongTo){
		this.forumBelongTo = forumBelongTo;
	}
	
	//operations--STATUS
	public Status modifyStatus(){
		Status status = new Status();
		String content = "Initial content";
		InputStreamReader isr = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(isr);
		try{
			content = br.readLine();
		}catch (Exception e){
			e.printStackTrace();
		}
		status.setContent(content);
		return status;
	}
	public void releaseStauts(){
		Status status = modifyStatus();
		status.getContent();
	}
}
